import Vue from "vue";
import App from "./App.vue";
import router from "./router/index";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "./css/reset.css";
import "./css/global.css";
import Pagination from "./components/Pagination.vue";
import TableTemplate from "./components/TableTemplate.vue";
import api from "@/services/api";
import * as echarts from "echarts";
import MyEchart from "@/components/MyEchart";
import download from "downloadjs";
import Print from "vue-print-nb";
Vue.use(Print);
Vue.component(TableTemplate.name, TableTemplate);
Vue.component(Pagination.name, Pagination);
Vue.component(MyEchart.name, MyEchart);
Vue.prototype.$api = api;
Vue.prototype.$echarts = echarts;
// import "./css/reset.css";
Vue.prototype.$download = download;
Vue.use(ElementUI);
Vue.config.productionTip = false;
new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
